package org.Niu.server;

import org.Niu.common.service.UserService;
import org.Niu.common.service.impl.UserServiceImpl;
import org.Niu.server.nettyImpl.NettyRPCRPCServer;


public class TestServer {
    public static void main(String[] args) {
        UserService userService=new UserServiceImpl();

        ServiceProvider serviceProvider=new ServiceProvider("127.0.0.1",9999);
        serviceProvider.provideServiceInterface(userService);

        RpcServer rpcServer=new NettyRPCRPCServer(serviceProvider);
        rpcServer.start(9999);
    }
}